package com.rawchen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description: 博客动态
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Moment {
	@TableId(type = IdType.AUTO)
	private Long id;
	/** 动态内容 */
	private String content;
	/** 创建时间 */
	private Date createTime;
	/** 点赞数量 */
	private Integer likes;
	/** 是否公开 */
	@TableField("is_published")
	private Boolean published;
}
